package com.action;

import com.dao.ITabEmbeddedpipestatisticsDao;
import com.dao.ITabResponsibilitydocumentsDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabEmbeddedpipestatistics;
import com.po.TabResponsibilitydocuments;

public class TabResponsibilitydocumentsAction extends BaseAction implements ModelDriven<TabResponsibilitydocuments>{

	TabResponsibilitydocuments form = new TabResponsibilitydocuments();
	public TabResponsibilitydocuments getModel(){
		return form;
	}
	private ITabResponsibilitydocumentsDao tabResponsibilitydocumentsDao;
	public void setTabResponsibilitydocumentsDao(ITabResponsibilitydocumentsDao tabResponsibilitydocumentsDao){
		this.tabResponsibilitydocumentsDao = tabResponsibilitydocumentsDao;
	}

	public String findByList(){
		form.setPager_count(tabResponsibilitydocumentsDao.findByCount(form));
		form.setTabrfslist(tabResponsibilitydocumentsDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabResponsibilitydocumentsDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabResponsibilitydocumentsDao.updateObject(form);
		return "update";
	}

	

}
